package com.jeremyaburns.oddio.tracker 
{
	import com.jeremyaburns.oddio.Song;
	import flash.display.Sprite;

	public class OTTrackList extends Sprite
	{
		static public const EVENT_CLICK_TRACK :String = "eventclicktile";
		
		public var song :Song;
		
		private var tiles :Vector.<Sprite>;

		public function OTTrackList( song:Song ) 
		{
			this.song = song;
			
			graphics.beginFill( 0x111111, 1 );
			graphics.drawRect( 0, 0, OTStyle.instrumentPanelNumTiles*OTStyle.instrumentTileWidth + (OTStyle.instrumentPanelNumTiles+1)*OTStyle.instrumentPanelPadding, 200 );
			graphics.endFill();
			
			tiles = new Vector.<Sprite>;
		}
		
		public function dispose() :void
		{
			
		}
				
		public function resize( height:Number ) :void
		{
			graphics.clear();
			graphics.beginFill( 0x111111, 1 );
			graphics.drawRect( 0, 0, OTStyle.instrumentPanelNumTiles*OTStyle.instrumentTileWidth + (OTStyle.instrumentPanelNumTiles+1)*OTStyle.instrumentPanelPadding, height );
			graphics.endFill();
		}
	}
}